<?php
namespace lib\DataAccess;

class JsonFileAccess extends FileAccess
{
    public function encode(Array $array)
    {
        return json_encode($array);
    }

    public function decode($str)
    {
        return json_decode($str, true);
    }
}